import com.itheima.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cc = new ClassPathXmlApplicationContext("aopp.xml");
        UserService userService = (UserService) cc.getBean("userService");
        //前置
//        userService.save();
        //后置
//        userService.save();
        //异常
        userService.findAll();
    }
}
